import  httpInstance  from '@/utils/http'

export const getBannerAPI = (parmas = {}) => {
  const {distributionSite = '1'} = parmas
  return httpInstance({
    url: '/home/banner',
    method: 'get',
    params: {
      distributionSite
    }
  })
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNewAPI = () => httpInstance.get('/home/new')

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const getHotAPI = () => httpInstance.get('home/hot', {})

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => httpInstance.get('/home/goods')
